<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<style type="text/css">
			* {
				margin: 0;
				padding: 0;
			}
		</style>
	</head>

	<body>
		<button id="widthBtn">当前窗口width</button>
		<script type="text/javascript">
			"use strict"
			var global = {};
			global.People = function(name){
				this.name = name;
				this.age = 22;  xoccxczx
			}
			global.People.prototype.setage = function(age){
				global.People = function(name){
					this.name = name;
					this.age = age;
				}
				console.log(this);
			}
			var lin = new global.People("lin");
			console.log(lin.age);
			
			lin.setage(25);
			
			var lin2 = new global.People("lin2");
			console.log(lin2.age);
		</script>
	</body>

</html>
